package cn.iocoder.yudao.module.mp.controller.admin.message.vo.message;

import lombok.*;

import java.util.*;

import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 消息模板推送记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class MpTemplateRecordPageReqVO extends PageParam {

    @Schema(description = "数据来源")
    private Integer source;

    @Schema(description = "来源对应分组id", example = "16253")
    private String groupId;

    @Schema(description = "数据类型 1好友添加模板", example = "1")
    private Integer type;

    @Schema(description = "用户id", example = "1")
    private Integer userId;

    @Schema(description = "唯一标识防止重复推送", example = "19942")
    private String uniqueId;

    @Schema(description = "公众号模板ID", example = "1534")
    private String templateId;

    @Schema(description = "公众号账号的编号", example = "4153")
    private Long accountId;

    @Schema(description = "公众号 appId", example = "8825")
    private String appId;

    @Schema(description = "公众号粉丝标志", example = "32747")
    private String openid;

    @Schema(description = "消息内容")
    private String content;

    @Schema(description = "跳转链接", example = "https://www.iocoder.cn")
    private String url;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}